package com.weihua.service;

import com.weihua.bo.MachineBo;
import com.weihua.conver.MachineConvert;
import com.weihua.dao.MachineMapper;
import com.weihua.po.MachinePo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author Administrator
 */
@Service
@Transactional
public class MachineService extends BaseServiceImpl<MachineBo, MachinePo, MachineMapper> {

    @Autowired
    private MachineMapper machineMapper;
    @Override
    protected MachineMapper getMapper() {
        return machineMapper;
    }

    @Override
    protected MachinePo transBo2Po(MachineBo bo) {
        return MachineConvert.T.transBo2Po(bo);
    }

    @Override
    protected MachineBo transPo2Bo(MachinePo po) {
        return MachineConvert.T.transPo2Bo(po);
    }
}
